﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleSystem.Other
{
    public partial class frm_StyleList : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!Page.IsPostBack)
                ddlTheme.SelectedValue = PageManager1.Theme.ToString().ToLower();

        }
        protected void ddlTheme_SelectedIndexChanged(object sender, EventArgs e)
        {
            HttpCookie themeCookie = new HttpCookie("Theme", ddlTheme.SelectedValue);
            themeCookie.Expires = DateTime.Now.AddYears(1);
            Response.Cookies.Add(themeCookie);
            ExtAspNet.PageContext.RegisterStartupScript(ExtAspNet.ActiveWindow.GetHideRefreshReference());

        }
    }
}
